import {FormComponentProps} from 'antd/lib/form';

export interface AuthorizedRouteProps {
    path: string;
    redirectPath: string;
    history: any;

    render(): JSX.Element;
}

export interface FormLocalProps extends FormComponentProps {
    props?: any;
    history?: any;
    datas?: any;
    style?: any;
}

export interface SearchHeaderProps extends FormComponentProps {
    dataForm: any[];
    className?: string;

    onHandleSubmit(values: any): void;
}

export interface SafeCodeModalProps extends FormComponentProps {
    visible: boolean;
    confirmLoading: boolean;

    handleOk(value: string): void;

    handleCancel(): void;
}


export interface SelectUserProps {
    onValueChange(val: number | object): void;
}